unit ModifyKoeff;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  AbstModifyDlg, Db, StdCtrls, ExtCtrls, Mask, DBCtrls;

type
  TfmModifyKoeff = class(TfmAbstModifyDlg)
    DBEdit5: TDBEdit;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    DBEdit3: TDBEdit;
    DBEdit4: TDBEdit;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
    procedure prepareDlg; override;
  public
    { Public declarations }
  end;

var
  fmModifyKoeff: TfmModifyKoeff;

implementation

uses DataModule;

{$R *.DFM}

{ TfmModifyKoeff }

procedure TfmModifyKoeff.prepareDlg;
begin
  inherited;
  DBEdit3.Enabled := (EditMode in [deAdd, deEdit]);
  DBEdit4.Enabled := DBEdit3.Enabled;
  DBEdit5.Enabled := DBEdit3.Enabled;
end;

procedure TfmModifyKoeff.FormCreate(Sender: TObject);
begin
  inherited;
  DataSource.DataSet:=dmDic.qryKoeff;
end;

end.
